package com.example;

import org.springframework.beans.factory.config.BeanPostProcessor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Config {

    @Bean
    public Simple simple(){
        return new Simple();
    }

    @Bean
    public BeanPostProcessor simpleBeanPostProcessor(){
        return new SimpleBeanPostProcessor();
    }

    @Bean
    public ProcessorHolder processorHolder(BeanPostProcessor simpleBeanPostProcessor){
        return new ProcessorHolder((SimpleBeanPostProcessor)simpleBeanPostProcessor);
    }

    @Bean
    public SimpleBeanFactoryPostProcessor simpleBeanFactoryPostProcessor(){
        return new SimpleBeanFactoryPostProcessor();
    }
}
